import javax.swing.*;
import java.awt.*;

/**
 * Created by Scott Tiger.
 * User: tomaszsocha
 * Date: 2010-04-26
 * Time: 10:32:14
 */
public class KoszulkaGUI extends JPanel{
    public JPanel getPanel() {
        return panel;
    }

    public void setPanel(JPanel panel) {
        this.panel = panel;
    }

    private JPanel panel;
    private JFormattedTextField opis;
    private JTextField textPref;
    private JTextField textSuf;
    private Koszulka itself;


    public KoszulkaGUI(Koszulka itself) {
        super();
        //this.opis.setText(itself.getOpis());
        this.textPref = new JTextField();
        this.textSuf = new JTextField();
        this.textPref.setText(itself.getPrefix());
        this.textSuf.setText(itself.getSufix());
        this.itself = itself;

     //   panel.add(opis);
        panel = new JPanel();
        panel.add(textPref);
        panel.add(textSuf);
    }

    public Koszulka getItself() {
        return itself;
    }
}
